package com.study.SellTicket2;

import java.util.List;

public class TestMain {
    public static void main(String[] args) {
//        Windows windows1 = new Windows("窗口1");
//        Windows windows2 = new Windows("窗口2");
//        Thread t1 = new Thread(new Runnable() {
//            @Override
//            public void run() {
//                windows1.sell();
//            }
//        });
//        Thread t2 = new Thread(new Runnable() {
//            @Override
//            public void run() {
//                windows2.sell();
//            }
//        });
//        t1.start();
//        t2.start();
        new Thread(new Windows("窗口1")).start();
        new Thread(new Windows("窗口2")).start();
        new Thread(new Windows("窗口3")).start();
    }
}
